<template>
	<view class="qian">
		<view class="aptext">
			<view class="information" v-for="item,index in list" :key="index">
				<view class="yiquan" @click="go(item)">
					<view class="diyihan">
						{{item.shotMsg}}
					</view>
					<view class="xmian">
						<view class="zhou">
							<view class="rqi">
								<view class="huise">
									日期：
								</view>
								<view class="heis">
									{{item.createTime}}
								</view>

							</view>
							<!-- <view class="ztai">
								<view class="zhuangtao1">
									贴子状态：
								</view>
								<view class="ztaihon" v-if="item.publishStatus==1">草稿</view>
								<view class="ztaihon" v-if="item.publishStatus==2">提交</view>
								<view class="ztaihon" v-if="item.publishStatus==3">下线</view>
							</view> -->
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		informationHis,
	} from "@/request/api.js"
	export default {
		data() {
			return {
				list: [],
			}
		},
		onLoad() {
			this.myPublishList()
		},
		methods: {
			myPublishList(e) {
				informationHis({
					memberId: JSON.parse(uni.getStorageSync('userInfo')).id
				}).then(res => {
					console.log(res, '123');
					this.list = res.result.records
				})
			},
			go(e) {
				uni.navigateTo({
					url: '../details/index?detalis=' + JSON.stringify(e)
				})
			}
		}
	}
</script>

<style scoped lang="less">
	.qian {
		background: #FAFAFA;
		height: 100vh;
	}

	.wodedd {
		margin-left: 24rpx;
		height: 100rpx;
		display: flex;
		border-radius: 16rpx 16rpx 16rpx 16rpx;

		justify-content: space-around;
		background-color: #ffffff;
		margin-top: 20rpx;



		.qbsghui {

			height: 100rpx;
			background: #ffffff;

			font-weight: 400;
			font-size: 30rpx;
			color: #000;
			align-items: center;
			text-align: center;
			line-height: 88rpx;

		}

		.qbsg {

			height: 100rpx;
			color: #F8492E;
			align-items: center;
			text-align: center;
			line-height: 88rpx;
			// border-bottom: 6px solid #F8492E;
		}
	}

	.qbsga {
		width: 64rpx;
		height: 6rpx;
		background: #F8492E;

	}

	.yiquan {
		width: 702rpx;
		padding: 32rpx 24rpx;
		background: #FFFFFF;
		border-radius: 13rpx 13rpx 13rpx 13rpx;
		margin: 0 auto;
		margin-top: 20rpx;

		box-sizing: border-box;

		.diyihan {
			width: 654rpx;
			height: 38rpx;
			white-space: nowrap;
			/* 禁止换行 */
			overflow: hidden;
			/* 超出宽度隐藏 */
			text-overflow: ellipsis;
			/* 显示省略号 */

			font-weight: 400;
			font-size: 28rpx;
			color: #333333;
			font-style: normal;
			text-transform: none;
		}

		.xmian {
			display: flex;
			margin-top: 32rpx;
			justify-content: space-between;
			align-items: flex-end;

			.zhou {
				.liulna {
					display: flex;


					.liulanrsh {
						display: flex;
						margin-right: 72rpx;
					}

					.lxsra {
						display: flex;
					}
				}

				.rqi {
					display: flex;
					margin-top: 20rpx;
					margin-bottom: 20rpx;
				}

				.ztai {
					display: flex;

					.zhuangtao1 {

						font-weight: 400;
						font-size: 24rpx;
						color: #AAAAAA;
						font-style: normal;
						text-transform: none;
					}

					.ztaihon {

						font-weight: 400;
						font-size: 24rpx;
						color: #F8492E;

						font-style: normal;
						text-transform: none;
					}
				}
			}

			.you {
				width: 153rpx;
				height: 64rpx;
				background: #F8492E;
				border-radius: 16rpx 16rpx 16rpx 16rpx;

				font-weight: 400;
				font-size: 24rpx;
				color: #FFFFFF;
				line-height: 62rpx;
				text-align: center;
				font-style: normal;
				margin-left: 10rpx;
				text-transform: none;
			}
		}

	}

	.huise {

		font-weight: 400;
		font-size: 24rpx;
		color: #AAAAAA;
		font-style: normal;
		text-transform: none;
	}

	.heis {

		font-weight: 400;
		font-size: 24rpx;
		color: #333333;
		font-style: normal;
		text-transform: none;
	}
</style>